package com.ll.common.neo4j.node;

import com.ll.common.neo4j.relativship.InviteShip;
import lombok.Data;
import org.springframework.data.neo4j.core.schema.Id;
import org.springframework.data.neo4j.core.schema.Relationship;

import java.util.ArrayList;
import java.util.List;

@Data
public class UserNode {
    @Id
    private Integer id;
    private String username;

    //邀请关系
    @Relationship(type = "INVITE", direction = Relationship.Direction.OUTGOING)
    private List<InviteShip> inviteShips = new ArrayList<>();
}
